<template>
  <div class="detail-list">
    <ul>
      <li class="item border-bottom" v-for="(item, index) in ticketList" :key="index">
        <h3 class="item-title">
          <span class="item-title-icon"></span>
          {{item.title}}
        </h3>
        <detail-list class="item-children" v-if="item.children" :ticketList="item.children" />
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'detail-list',
  props: {
    ticketList: Array
  }
}
</script>

<style lang="stylus" scoped>
  .item-title
    padding 0 .2rem
    line-height .8rem
    font-size .32rem
    .item-title-icon
      display: inline-block;
      position: relative;
      top: .07rem;
      left: .07rem;
      width: .36rem;
      height: .36rem;
      background: url(http://s.qunarzz.com/piao/image/touch/sight/detail.png) 0 -.45rem no-repeat;
      margin-right: .1rem;
      background-size: .4rem 3rem;
  .item-children
    padding 0 .2rem
</style>
